<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="../common/taglib.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>我的首页</title>
	<meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE">
	
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/header.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/common.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/public.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/default.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/footer.css"/>">
	
	<script type="text/javascript">
		function searchResume(pageSize,pageNo){
			var form = document.getElementById("searchForm");
			form.pageSize.value=pageSize;
			form.pageNo.value=pageNo;
			form.position.value='${resumeSearchModel.position}';
			form.university.value='${resumeSearchModel.university}';
			form.major.value='${resumeSearchModel.major}';
			form.education.value='${resumeSearchModel.education}';
			form.experience.value='${resumeSearchModel.experience}';
			form.workArea.value='${resumeSearchModel.workArea}';
			form.lowsalary.value='${resumeSearchModel.lowsalary}';
			form.highsalary.value='${resumeSearchModel.highsalary}';
			form.submit();
		}
	</script>
  </head>
<body id="home">

<jsp:include page="../common/hrheader.jsp"></jsp:include>

<div class="wrap clearfix">
   
  <div class="main"> 
	   <div class="feeds-panel">
	    	高级搜索：
	    	<form:form id="searchForm" method="post" modelAttribute="resumeSearchModel" >
	    	<input type="hidden" name="pageSize">
	    	<input type="hidden" name="pageNo">
	    		<table >
	    			<tr>
		    			<td>职位:</td>
		    			<td colspan="3"><input type="text" name="position" class="text span7" value="${resumeSearchModel.position}"></td>
		    		</tr>
	    			<tr>
	    				<td>学校：</td>
	    				<td><input type="text" name="university" class="text span7" value="${resumeSearchModel.university}"></td>
	    				<td>专业：</td>
	    				<td><input type="text" name="major" class="text span7" value="${resumeSearchModel.major}"></td>
	    			</tr>	    			
		    		<tr>
		    			<td>学历:</td>
		    			<td>
		    				<form:select path="education" >		
		    					 <form:option value="">不限</form:option>		    			 
			   					 <form:option value="专科">专科</form:option>
			   					 <form:option value="本科">本科</form:option>
			   					 <form:option value="硕士">硕士</form:option>
			   					 <form:option value="博士">博士</form:option>
				    		</form:select>
		    			</td>
		    			<td>工作年限:</td>
		    			<td>
		    				<form:select path="experience" >
			    			 	<form:option value="">不限</form:option>
			   					 <form:option value="应届">应届</form:option>
			   					 <form:option value="1年">1年</form:option>
			   					 <form:option value="5年">5年</form:option>			   					 
				    		</form:select>
		    			</td>
		    		</tr>
		    		<tr>
		    			<td>期望工作地区:</td>
		    			<td><input type="text" name="workArea" class="text span7" value="${resumeSearchModel.workArea}"></td>
		    			<td colspan="2">
		    				年薪:<input type="number" min="0" name="lowsalary" class="text span3" value="${resumeSearchModel.lowsalary}">
		    				-<input type="number" min="0" name="highsalary" class="text span3" value="${resumeSearchModel.highsalary}">
		    			</td>
		    		</tr>
		    		<tr>
		    			<td align="center" colspan="4">
		    				<input type="submit" value="搜索" class="btn btn-middle btn-primary" >
		    			</td>
		    		</tr>		    		
	    		</table>
	     </form:form>
	   </div>
    </div>
   
	<div class="main"> 
	   <div class="feeds-panel">	    
		<div class="data-list fixed-parent relative" >
		  	<div class="fixed-data-header absolute" >
			     <table class="table table-text-center table-hover table-resume-list">
			      <thead>
			        <tr class="ico-arrow-order-tr">
			          <th width="120">姓名</th>
			          <th width="30">性别</th>
			          <th width="50">学历 </th>
			          <th width="100">专业</th>			          
			          <th width="70">工作年限</th>
			          <th width="100">期望工作地区</th>
			          <th width="120" class="text-left">意愿职位</th>
			        </tr>
			      </thead>
		      </table>
		    </div>
		    <br><br>
		    <table class="table table-text-center table-hover table-resume-list">  
		    <c:if test="${resume!=null }">
		    <c:forEach var="resume" items="${resume}">   
		      <tbody>       
		         <tr>
		          <td width="120">        
		          <a class="link-resume-view" title="查看简历详细信息" href="<c:url value="/resume/browseresume/${resume[0] }" />" target="_blank">${resume[1] }</a>         
		          </td>
		          <td width="30">${resume[2] }</td>
		          <td width="50">${resume[3] }</td>
		          <td width="100">${resume[4] }</td>
		          <td width="70">${resume[5] }</td>
		          <td width="100">${resume[6] }</td>
		          <td width="120" class="text-left" title="${resume[7] }"><font color="red">${resume[7] }</font></td>
		        </tr>		                            
		      </tbody>
		      </c:forEach>
		      </c:if>
		      <tfoot>
		        <tr>
		          <td colspan="8">
		          <div class="pagerbar">
		          <a href="#" onclick="searchResume(5,${curPage-1})">上页</a>
		          <a href="#" onclick="searchResume(5,1)">1</a>
		          <a href="#" onclick="searchResume(5,2)">2</a>
		          <a href="#" onclick="searchResume(5,3)">3</a>
		          <a href="#" onclick="searchResume(5,4)">4</a>
		          <a href="#" onclick="searchResume(5,5)">5</a>
		          <span class="ellipsis">…</span>
		          <a href="#" onclick="searchResume(5,${curPage+1})">下页</a>		          
		          </div>
		          </td>
		        </tr>
		      </tfoot>		      
		    </table>
		</div>    
	</div>	
  </div>
  
  
</div>

<jsp:include page="../common/footer.jsp"></jsp:include>

</body>
</html>